<?php
include_once("Session.php");				//--> Session

$objSession = new Session();				//--> session

/*----- check session -----*/
if($objSession->exist()) {
	$gid = $objSession->getGroupID();
	$uid = $objSession->getUserID();

}else{
	header("Location: ../login.php");
	exit;
}

if(isset($_GET["Lan"])){
	$arrLan = array("lan" => $_GET["Lan"]);
	$objSession->add($arrLan);
}

if($objSession->getLanguage() == "zh-CN"){
	include_once("zh-CN.inc.php");	//--> zh_CN
}else{
	include_once("en-US.inc.php");	//--> us_EN
}

if(isset($_GET['menuGid']) && isset($_GET['menuid'])){
	$menuGid 	= $_GET['menuGid'];
	$menuid 	= $_GET['menuid'];
	$id			= $_GET['id'];
}else{
	$menuGid 	= $_POST['menuGid'];
	$menuid 	= $_POST['menuid'];
	$id			= $_POST['id'];
}

if(isset($_POST['backurl']))
	$backurl = $_POST['backurl'];
else
	$backurl = $_SERVER['HTTP_REFERER'];


?>